#include "StdAfx.h"
#include "listTest.h"

ostream& operator<<(ostream& stream, algo_list list)
{
	list_node* head = list.get_head();
	for(; head!=0; head = head->_next)
	{
		stream << head->_val <<",";
	}
	return stream;
}

listTest::listTest(void)
{
}


listTest::~listTest(void)
{
}

TEST_F(listTest, reverse)
{
	cout <<"Input list=" << _list << endl;
	_list.reverse();
	cout <<"Reversed=" << _list << endl;

	_list.reserve_single();
	cout <<"Reversed_single=" << _list << endl;
}